package com.cddx.logistics.mapper;

import com.cddx.logistics.domain.vo.CableStatisticsVo;
import com.cddx.logistics.domain.vo.MaterialInOutStatisticsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.Date;
import java.util.List;

@Mapper
public interface CableStatisticsMapper {
    List<CableStatisticsVo> selectCableStatisticsByCondition(
            @Param("startDate") Date startDate,
            @Param("endDate") Date endDate,
            @Param("name") String name
    );

    List<MaterialInOutStatisticsVo> selectCableInOutStats(
            @Param("materialName") String materialName,
            @Param("materialCode") String materialCode);

    // 新增方法：查询所有物料名称
    List<String> selectAllMaterialNames();
}
